#ifndef __STATE_H__
#define __STATE_H__

#include <stdint.h>


/* 以下标志位用于判断当前的状态 */
extern volatile uint8_t Car_State; // 1 2 3 4

extern uint8_t state_num;

extern uint8_t state_1_1; // 直线
extern uint8_t state_1_2; // 停车，声光提示

extern uint8_t state_2_1; // 直线A-B
extern uint8_t state_2_2; // 弧线B-C
extern uint8_t state_2_3; // 弧线到直线，停车矫正角度
extern uint8_t state_2_4; // 直线C-D
extern uint8_t state_2_5; // 弧线D-A
extern uint8_t state_2_6; // 回到A点停车
extern int16_t state_2_3_ideal_angle;

extern uint8_t state_3_1;
extern uint8_t state_3_2;
extern uint8_t state_3_3;
extern uint8_t state_3_4;
extern uint8_t state_3_5;
extern uint8_t state_3_6;
extern uint8_t state_3_7;
extern uint8_t state_3_8;
extern uint8_t state_3_9;

extern int16_t state_3_1_ideal_angle;
extern int16_t state_3_5_ideal_angle;

extern uint8_t Detha_angle;
extern uint8_t Circle_count;

extern uint8_t state_5_1;
extern uint8_t state_5_2;

extern uint8_t bandary_count;

void little_state_updata();
void change_cmd_by_state();

#endif